package com.mycom.service.impl;

import com.mycom.dao.SubmitFormDao;
import com.mycom.pojo.SubmitForm;
import com.mycom.service.SubmitFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SubmitFormServiceImpl implements SubmitFormService {
    @Autowired
    private SubmitFormDao submitFormDao;

    @Override
    public boolean save(SubmitForm submitForm) {
        return submitFormDao.save(submitForm) > 0 ? true : false;
    }

    @Override
    public List<SubmitForm> findByIdCardNumber(String idCardNumber) {
        return submitFormDao.findByIdCardNumber(idCardNumber);
    }
    @Override
    public List<SubmitForm> findByReviewerIdCardNumber(String reviewerIdCardNumber){
        return submitFormDao.findByReviewerIdCardNumber(reviewerIdCardNumber);
    }
}
